<?php

 $id=$_POST['id'];
 $connection=mysql_connect("localhost","root","192510");
 mysql_select_db("news",$connection);
 $sql="select * from news where id=$id";
 $result=mysql_query($sql);
 $row=mysql_fetch_array($result);
 echo json_encode($row);
 
 

?>